package com.bw.service.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bw.common.entity.TabEntity
import com.bw.image.GlideImageLoader
import com.bw.service.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class ServiceCategoryAdapter:BaseQuickAdapter<TabEntity,BaseViewHolder>(R.layout.service_category_item) {
    override fun convert(holder: BaseViewHolder, item: TabEntity) {
        holder.setText(R.id.tv_service,item.title)

        val imageView = holder.getView<ImageView>(R.id.img_service)

        Glide.with(imageView.context)
            .load(item.selImgDrawable)
            .skipMemoryCache(false)
            .into(imageView)


    }
}